package com.heima.behavior.config;

import com.heima.behavior.iterceptor.ApBehaviorInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

/**
 * create 2023/6/27 21:08
 */


@Configuration
public class WebMvcConfig extends WebMvcConfigurationSupport {

    @Override
    protected void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new ApBehaviorInterceptor()).addPathPatterns("/**");
    }
}
